package web.exhandlers;

import lombok.Getter;

@Getter
public class BusinessException extends RuntimeException{

    //异常码
    int code;

    public BusinessException(int code) {
        super();
        this.code = code;
    }

    public BusinessException(String message,int code) {
        super(message);
        this.code = code;
    }

    public BusinessException(String message, Throwable cause,int code) {
        super(message, cause);
        this.code = code;
    }

    public BusinessException(Throwable cause,int code) {
        super(cause);
        this.code = code;
    }

    protected BusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace,int code) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
    }
}
